package com.cn.daoIntface;

import com.cn.entity.UserEntity;

import java.sql.SQLException;
import java.util.List;

public interface UserDaoIntface {
    UserEntity queryByPhone(UserEntity userEntity, String type) throws ClassNotFoundException, SQLException, InstantiationException, IllegalAccessException;

    int addUser(UserEntity userEntity) throws SQLException, ClassNotFoundException;

    int updateUser(UserEntity userEntity, String type) throws SQLException, ClassNotFoundException;

    List<UserEntity> queryAll(Integer currentPageNo, Integer pageSize) throws SQLException, ClassNotFoundException;

    List<UserEntity> queryAll();

    String maxid() throws SQLException, ClassNotFoundException;
}
